package com.hejia.alauda.task;

import java.util.concurrent.Callable;

import com.hejia.alauda.entity.Financing;

public class InterestTask implements Callable<Long> {
	
	private Financing financing;
	
	public InterestTask(Financing financing) {
		super();
		this.financing = financing;
	}

	@Override
	public Long call() throws Exception {
		
		return financing != null ? financing.getId() : 0;
	}

}
